const path = require("path")
const htmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
    mode:"development",
    entry:"./time2.ts",
    output:{
        path: path.join(__dirname,"./dist"),
        filename:"dist.js" 
    },
    module:{
        rules:[
            {
                test:/\.ts$/,
                loader:'ts-loader'
            }
        ]
    },
    plugins: [
        new htmlWebpackPlugin({
            template:"./index.html"
        })
    ]
}
